package com.eic.framework.spring;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStoppedEvent;

/**
 * 监听
 * @author guochun
 */
public class AppStoppedEventListener implements ApplicationListener<ContextStoppedEvent>{
	private Logger logger= LoggerFactory.getLogger(this.getClass());
	@Override
	public void onApplicationEvent(ContextStoppedEvent event) {
		logger.info("应用上下文已停止");
	}
}
